package cn.chiship.framework.upms.biz.system.entity;

import java.io.Serializable;

/**
 * 实体
 *
 * @author lijian
 * @date 2023-02-21
 */
public class UpmsEmailSetting implements Serializable {
    /**
     * 主键
     */
    private String id;

    /**
     * 创建时间
     */
    private Long gmtCreated;

    /**
     * 更新时间
     */
    private Long gmtModified;

    /**
     * 逻辑删除（0：否，1：是）
     */
    private Byte isDeleted;

    /**
     * 主题
     */
    private String subject;

    /**
     * 主机名
     */
    private String host;

    /**
     * 连接协议
     */
    private String transportProtocol;

    /**
     * 状态0禁用1启用 默认启用
     */
    private Byte smtpAuth;

    /**
     * 是否启用SSL安全状态0禁用1启用 默认启用
     */
    private Byte isSsl;

    /**
     * ssl端口
     */
    private String smtpSslPort;

    /**
     * 端口号
     */
    private String smtpPort;

    /**
     * 发件人账号
     */
    private String sendFromAddress;

    /**
     * 发件人密码
     */
    private String sendFromAddressPwd;

    /**
     * 状态 0禁用1启用
     */
    private Byte state;

    /**
     * 0 系统 1 单位 2 部门 3 个人
     */
    private Byte type;

    /**
     * 主键
     */
    private String outreachInfoId;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(Long gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public Long getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Long gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Byte getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getTransportProtocol() {
        return transportProtocol;
    }

    public void setTransportProtocol(String transportProtocol) {
        this.transportProtocol = transportProtocol;
    }

    public Byte getSmtpAuth() {
        return smtpAuth;
    }

    public void setSmtpAuth(Byte smtpAuth) {
        this.smtpAuth = smtpAuth;
    }

    public Byte getIsSsl() {
        return isSsl;
    }

    public void setIsSsl(Byte isSsl) {
        this.isSsl = isSsl;
    }

    public String getSmtpSslPort() {
        return smtpSslPort;
    }

    public void setSmtpSslPort(String smtpSslPort) {
        this.smtpSslPort = smtpSslPort;
    }

    public String getSmtpPort() {
        return smtpPort;
    }

    public void setSmtpPort(String smtpPort) {
        this.smtpPort = smtpPort;
    }

    public String getSendFromAddress() {
        return sendFromAddress;
    }

    public void setSendFromAddress(String sendFromAddress) {
        this.sendFromAddress = sendFromAddress;
    }

    public String getSendFromAddressPwd() {
        return sendFromAddressPwd;
    }

    public void setSendFromAddressPwd(String sendFromAddressPwd) {
        this.sendFromAddressPwd = sendFromAddressPwd;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getOutreachInfoId() {
        return outreachInfoId;
    }

    public void setOutreachInfoId(String outreachInfoId) {
        this.outreachInfoId = outreachInfoId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gmtCreated=").append(gmtCreated);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", subject=").append(subject);
        sb.append(", host=").append(host);
        sb.append(", transportProtocol=").append(transportProtocol);
        sb.append(", smtpAuth=").append(smtpAuth);
        sb.append(", isSsl=").append(isSsl);
        sb.append(", smtpSslPort=").append(smtpSslPort);
        sb.append(", smtpPort=").append(smtpPort);
        sb.append(", sendFromAddress=").append(sendFromAddress);
        sb.append(", sendFromAddressPwd=").append(sendFromAddressPwd);
        sb.append(", state=").append(state);
        sb.append(", type=").append(type);
        sb.append(", outreachInfoId=").append(outreachInfoId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UpmsEmailSetting other = (UpmsEmailSetting) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGmtCreated() == null ? other.getGmtCreated() == null : this.getGmtCreated().equals(other.getGmtCreated()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
            && (this.getSubject() == null ? other.getSubject() == null : this.getSubject().equals(other.getSubject()))
            && (this.getHost() == null ? other.getHost() == null : this.getHost().equals(other.getHost()))
            && (this.getTransportProtocol() == null ? other.getTransportProtocol() == null : this.getTransportProtocol().equals(other.getTransportProtocol()))
            && (this.getSmtpAuth() == null ? other.getSmtpAuth() == null : this.getSmtpAuth().equals(other.getSmtpAuth()))
            && (this.getIsSsl() == null ? other.getIsSsl() == null : this.getIsSsl().equals(other.getIsSsl()))
            && (this.getSmtpSslPort() == null ? other.getSmtpSslPort() == null : this.getSmtpSslPort().equals(other.getSmtpSslPort()))
            && (this.getSmtpPort() == null ? other.getSmtpPort() == null : this.getSmtpPort().equals(other.getSmtpPort()))
            && (this.getSendFromAddress() == null ? other.getSendFromAddress() == null : this.getSendFromAddress().equals(other.getSendFromAddress()))
            && (this.getSendFromAddressPwd() == null ? other.getSendFromAddressPwd() == null : this.getSendFromAddressPwd().equals(other.getSendFromAddressPwd()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getOutreachInfoId() == null ? other.getOutreachInfoId() == null : this.getOutreachInfoId().equals(other.getOutreachInfoId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGmtCreated() == null) ? 0 : getGmtCreated().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getSubject() == null) ? 0 : getSubject().hashCode());
        result = prime * result + ((getHost() == null) ? 0 : getHost().hashCode());
        result = prime * result + ((getTransportProtocol() == null) ? 0 : getTransportProtocol().hashCode());
        result = prime * result + ((getSmtpAuth() == null) ? 0 : getSmtpAuth().hashCode());
        result = prime * result + ((getIsSsl() == null) ? 0 : getIsSsl().hashCode());
        result = prime * result + ((getSmtpSslPort() == null) ? 0 : getSmtpSslPort().hashCode());
        result = prime * result + ((getSmtpPort() == null) ? 0 : getSmtpPort().hashCode());
        result = prime * result + ((getSendFromAddress() == null) ? 0 : getSendFromAddress().hashCode());
        result = prime * result + ((getSendFromAddressPwd() == null) ? 0 : getSendFromAddressPwd().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getOutreachInfoId() == null) ? 0 : getOutreachInfoId().hashCode());
        return result;
    }
}